﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Strategy_Pattern
{
    class Player : Character
    {
        private IJumpStrategy jumpStrategy;

        public Player(IJumpStrategy jumpStrategy)
        {
            this.jumpStrategy = jumpStrategy;
        }

        public override void DoJump()
        {
            jumpStrategy.jump();
        }
    }
}
